//
//  MBSaleSectionView.m
//  MemberBusiness-ios
//
//  Created by cherry pu on 2018/4/24.
//  Copyright © 2018年 zhangXin. All rights reserved.
//

#import "MBSaleSectionView.h"

@implementation MBSaleSectionView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        UILabel* titleLabel1 = [[UILabel alloc]init];
        titleLabel1.text = @"排行";
        titleLabel1.font = [UIFont lf_mediumFontOfSize:13];
        titleLabel1.textColor = [UIColor colorWithR:24 G:24 B:24];
        [self addSubview:titleLabel1];
        
        [titleLabel1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.equalTo(self).offset([UIView lf_sizeFromIphone6:20]);
        }];

        UILabel* titleLabel2 = [[UILabel alloc]init];
        titleLabel2.text = @"商品名称";
        titleLabel2.font = [UIFont lf_mediumFontOfSize:13];
        titleLabel2.textColor = [UIColor colorWithR:24 G:24 B:24];
        [self addSubview:titleLabel2];
        
        [titleLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(titleLabel1);
            make.left.equalTo(self).offset([UIView lf_sizeFromIphone6:104]);
        }];

        UILabel* titleLabel3 = [[UILabel alloc]init];
        titleLabel3.text = @"销量";
        titleLabel3.font = [UIFont lf_mediumFontOfSize:13];
        titleLabel3.textColor = [UIColor colorWithR:24 G:24 B:24];
        [self addSubview:titleLabel3];
        
        [titleLabel3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(titleLabel1);
            make.left.equalTo(self).offset([UIView lf_sizeFromIphone6:230]);
        }];

        UILabel* titleLabel4 = [[UILabel alloc]init];
        titleLabel4.text = @"销售额";
        titleLabel4.font = [UIFont lf_mediumFontOfSize:13];
        titleLabel4.textColor = [UIColor colorWithR:24 G:24 B:24];
        [self addSubview:titleLabel4];
        
        [titleLabel4 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(titleLabel1);
            make.right.equalTo(self).offset([UIView lf_sizeFromIphone6:-30]);
        }];

    }
    return self;
}

@end
